<?php
ArrowController::importModel("org.arrowplatform.controls.presentation.table.filters.ArrowTableAbstractFilter");
class ArrowTableTextFilter extends ArrowAbstractTableFilter{
	
	public function configure(){
		parent::configure();
	}
	public function generateFilter($value){
		$str = '<input type="text" field="'.$this->getField().'" value="'.$value.'" style="float:left;"  />';
		$str.= '<div class="ctrl-popup-cancel"></div>';
		$str.= '<div class="ctrl-popup-submit"></div>';
		
		return $str;
	}
	
	public function generateSetFilterValues($value) {
		
		$str = "<div class=\"ctrl-table-set-filter-value\" >$value</div><a rel=\"{$this->getResetRegistry()}\" href=\"{$this->getResetLink()}\" ></a>";
		return $str;
	}
}
?>